package zhaolongli_Entity;

public class Choice {
	String name;
	int index;
	
	public Choice(String name, int index){
		this.name = name;
		this.index = index;
	}
	
	/** change the index of choice
	 * @param newIndex
	 */
	void changeIndex(int newIndex){
		this.index = newIndex;
	}
	
	/** toString method*/

	@Override
	public String toString(){
		return (" "+ this.name);
	}

	public int getIndex() {
		return index;
		
	}
	
	public String getName(){
		return name;
	}

}
